package com.xh209051017.myapplication5;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class MySqlite extends SQLiteOpenHelper {
    //定义数据库名和版本号
    private static final String DBNAME="course.db";
    private static final int VERSION=1;
    public MySqlite(Context context) {
        super(context, DBNAME, null, VERSION);
    }
    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table course_info(id INTEGER primary key autoincrement,n varchar(10),x varchar(10),t varchar(10),tt varchar(10),p varchar(10))");
    }
    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)
    {

    }
}
